﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="IngresoDiasLaborados.aspx.cs" Inherits="Gui.Web.Forms.IngresoDiasLaborados" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="container">
        <div class="row">
            <div class="area-top clearfix">
                <div class="pull-left header">
                    <h3 class="title">
                        <i class="icon-calendar"></i>D&iacute;as Laborados
                    </h3>
                    <h5>
                        <span>Ingreso de d&iacute;as laborados por colaborador </span>
                    </h5>
                </div>
            </div>
        </div>
    </div>
    <div class="container padded">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header">
                        <span class="title">D&iacute;as Laborados</span></div>
                    <div class="padded">
                        <label>
                            Seleccione mes:</label>
                        <asp:DropDownList ID="MesLaborado" runat="server" AutoPostBack="True" DataMember="NombreMes"
                            DataValueField="IdMes" DataTextField="NombreMes" class="chzn-select" name="colors"
                            Width="30%" OnSelectedIndexChanged="MesLaborado_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <br />
                        <br />
                        <label>
                            D&iacute;as laborados por mes:</label><br />
                        <asp:GridView ID="DiasLaborados" class="table table-bordered table-striped responsive"
                            runat="server" AutoGenerateColumns="False" DataKeyNames="IdColaborador">
                            <Columns>
                                <asp:BoundField DataField="IdColaborador" HeaderText="IdColaborador" Visible="False" />
                                <asp:BoundField DataField="IdMes" HeaderText="IdMes" Visible="False" />
                                <asp:BoundField DataField="Anio" HeaderText="Anio" Visible="False" />
                                <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                                <asp:TemplateField AccessibleHeaderText="Cantidad de dias" HeaderText="Cantidad de dias">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextoCantidadDias" runat="server" Text="<%# Bind('CantidadDias') %>" Width="100%"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                    <div class="form-actions">
                        <button type="button" class="btn btn-blue" id="Guardar" runat="server" onserverclick="Guardar_Click">
                            Guardar</button>
                        <button type="button" class="btn btn-default" runat="server" id="Cancelar" onserverclick="Cancelar_Click">
                            Cancelar</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
